import 'package:car_map/page/res/styles.dart';
import 'package:car_map/widget/widget_Inquire_botton.dart';
import 'package:car_map/widget/widget_notfound.dart';
import 'package:flutter/material.dart';

class FlowCardPage extends StatefulWidget {
  @override
  _flowCardState createState() => _flowCardState();
}

class _flowCardState extends State<FlowCardPage> {

  bool isClick=true;

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('流量卡查询'),
      ),
      body: Container(
        padding: EdgeInsets.only(left: 10.0, right: 10.0),
        child: ListView(
          children: <Widget>[
            Container(
              padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
              alignment: Alignment.center,
              child: Text(
                '流量卡信息查询',
                style: TextStyles.textBold16,
              ),
            ),
            WidgetInquireBotton(
                hintText: '请输入卡号', textInputType: TextInputType.number,callback: (){
                  setState(() {
                    isClick=false;
                  });
            },),
            Offstage(
              offstage: isClick,
              child: WidgetNotFound(),
            )
          ],
        ),
      ),
    );
  }
}
